Configuration files

As part of the configuration, it is possible to add files.

It must be place in the files subdirectory

example from the ntp package

1
2
3
4
5
6
$ tree ntp
ntp
├── config
└── files
    └── etc
        └── ntp.conf

in the files adding %header(“##”) adds the metaconfig warning header.

The “##” part is the comment signs to use. For some config files ”;” or “–” would be appropriate

Pound sign

To show the sign # in a file, use %#.

To have a comment in the file parsed by metaconfig, use ##

Defining variables

define a variable to be used later in the config

example usage

1
2
#define vname "drupal.example.org"
SomeVar = %(vname)

Commands

define, import, method